<%@ page language="java" contentType="text/html;charset=gb2312"
	pageEncoding="utf-8"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
	prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template"
	prefix="template"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"
	prefix="nested"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
	<html:base />
	<link href="ui_stuff/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" language="javascript">
function valform(){
var username=document.getElementById("username").value;
var password=document.getElementById("password").value;
var repeat=document.getElementById("repeat").value;
var fullname=document.getElementById("fullname").value;
if(username==""|| password=="" || repeat=="" || fullname==""){
	alert("字段不能为空");
	return false;
}
if(password!=repeat){
	alert("两次输入的密码不同");
	return false;
}
return true;

}
</script>

</head>

<body class="thrColFixHdr">

	<div id="container">
		<div id="header">
			<h1 align="left">
				<img src="ui_stuff/logo.png" width="243" height="100" />
			</h1>

			<!-- end #header -->
		</div>
		<div id="mainContent_doexam">
			<logic:present name="usererror">
				<p class="error">
					<bean:write name="usererror" property="error" scope="request" />
				</p>
			</logic:present>

			<html:form action="register" onsubmit="return valform();">
				<br>
				<br>
				<table border="0">
					<thead>
						*为必填字段
					</thead>
					<tbody>
						<tr>
							<td>
								*用户类型：
							</td>
							<td>

								<html:select property="role">
									<html:option value="0">考官</html:option>
									<html:option value="1">考生</html:option>
								</html:select>
							</td>
						</tr>
						<tr>
							<td>
								*登录名：
							</td>
							<td>

								<html:text property="username" styleId="username" maxlength="10"></html:text>
							</td>
							<td>
								<small>a~z,A~Z,0~9,长度不少于6位</small>
							</td>
						</tr>
						<tr>
							<td>
								*姓名：
							</td>
							<td>

								<html:text property="fullname" styleId="fullname" maxlength="15"></html:text>
							</td>

						</tr>
						<tr>
							<td>
								*密码：
							</td>
							<td>

								<html:password redisplay="true" property="password"
									styleId="password" maxlength="10"></html:password>
							</td>
							<td>
								<small>a~z,A~Z,0~9,长度不少于6位</small>
							</td>
						</tr>
						<tr>
							<td>
								*重复密码：
							</td>
							<td>

								<input type="password" id="repeat" />
							</td>
						</tr>
						<tr>
							<td valign="top">
								备注：
								<br>
							</td>
							<td valign="top">
								<html:textarea property="comment" styleId="comment"></html:textarea>

							</td>

						</tr>
						<tr>
							<td valign="top">
								<br>
							</td>
							<td valign="top">
								<html:submit property="submit">注册</html:submit>
								<br>
							</td>
						</tr>
					</tbody>
				</table>
				<br>
			</html:form>

			<br class="clearfloat" />
			<div id="footer">
				<p align="center">
					<span class="footer"><span class="footer-p">Copyright
							© 2008 www.jiecii.com. All Rights Reserved. Designed by </span><a
						href="http://www.jiecii.com/" target="_blank" class="STYLE2">jiecii.com
					</a> </span>
				</p>
				<!-- end #footer -->
			</div>
			<!-- end #container -->
		</div>
</body>
</html:html>

